package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IRoleService {
    void saveOrUpdate(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    PageResult query(QueryObject qo);

    void remove(Long id);

    Boolean validateSn(String sn, Long id);

    List<Long> selectByEmployeeId(Long employeeId);

    List<String> selectRoleByEmployeeId(Long employeeId);
}
